package com.literaryfamily.literaryfamily.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BookBorrowOnlineExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BookBorrowOnlineExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOnlineIdIsNull() {
            addCriterion("online_id is null");
            return (Criteria) this;
        }

        public Criteria andOnlineIdIsNotNull() {
            addCriterion("online_id is not null");
            return (Criteria) this;
        }

        public Criteria andOnlineIdEqualTo(String value) {
            addCriterion("online_id =", value, "onlineId");
            return (Criteria) this;
        }

        public Criteria andOnlineIdNotEqualTo(String value) {
            addCriterion("online_id <>", value, "onlineId");
            return (Criteria) this;
        }

        public Criteria andOnlineIdGreaterThan(String value) {
            addCriterion("online_id >", value, "onlineId");
            return (Criteria) this;
        }

        public Criteria andOnlineIdGreaterThanOrEqualTo(String value) {
            addCriterion("online_id >=", value, "onlineId");
            return (Criteria) this;
        }

        public Criteria andOnlineIdLessThan(String value) {
            addCriterion("online_id <", value, "onlineId");
            return (Criteria) this;
        }

        public Criteria andOnlineIdLessThanOrEqualTo(String value) {
            addCriterion("online_id <=", value, "onlineId");
            return (Criteria) this;
        }

        public Criteria andOnlineIdLike(String value) {
            addCriterion("online_id like", value, "onlineId");
            return (Criteria) this;
        }

        public Criteria andOnlineIdNotLike(String value) {
            addCriterion("online_id not like", value, "onlineId");
            return (Criteria) this;
        }

        public Criteria andOnlineIdIn(List<String> values) {
            addCriterion("online_id in", values, "onlineId");
            return (Criteria) this;
        }

        public Criteria andOnlineIdNotIn(List<String> values) {
            addCriterion("online_id not in", values, "onlineId");
            return (Criteria) this;
        }

        public Criteria andOnlineIdBetween(String value1, String value2) {
            addCriterion("online_id between", value1, value2, "onlineId");
            return (Criteria) this;
        }

        public Criteria andOnlineIdNotBetween(String value1, String value2) {
            addCriterion("online_id not between", value1, value2, "onlineId");
            return (Criteria) this;
        }

        public Criteria andBookIdIsNull() {
            addCriterion("book_id is null");
            return (Criteria) this;
        }

        public Criteria andBookIdIsNotNull() {
            addCriterion("book_id is not null");
            return (Criteria) this;
        }

        public Criteria andBookIdEqualTo(String value) {
            addCriterion("book_id =", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdNotEqualTo(String value) {
            addCriterion("book_id <>", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdGreaterThan(String value) {
            addCriterion("book_id >", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdGreaterThanOrEqualTo(String value) {
            addCriterion("book_id >=", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdLessThan(String value) {
            addCriterion("book_id <", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdLessThanOrEqualTo(String value) {
            addCriterion("book_id <=", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdLike(String value) {
            addCriterion("book_id like", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdNotLike(String value) {
            addCriterion("book_id not like", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdIn(List<String> values) {
            addCriterion("book_id in", values, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdNotIn(List<String> values) {
            addCriterion("book_id not in", values, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdBetween(String value1, String value2) {
            addCriterion("book_id between", value1, value2, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdNotBetween(String value1, String value2) {
            addCriterion("book_id not between", value1, value2, "bookId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Long value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Long value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Long value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Long value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Long value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Long> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Long> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Long value1, Long value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Long value1, Long value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andOnlineTimeIsNull() {
            addCriterion("online_time is null");
            return (Criteria) this;
        }

        public Criteria andOnlineTimeIsNotNull() {
            addCriterion("online_time is not null");
            return (Criteria) this;
        }

        public Criteria andOnlineTimeEqualTo(Date value) {
            addCriterion("online_time =", value, "onlineTime");
            return (Criteria) this;
        }

        public Criteria andOnlineTimeNotEqualTo(Date value) {
            addCriterion("online_time <>", value, "onlineTime");
            return (Criteria) this;
        }

        public Criteria andOnlineTimeGreaterThan(Date value) {
            addCriterion("online_time >", value, "onlineTime");
            return (Criteria) this;
        }

        public Criteria andOnlineTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("online_time >=", value, "onlineTime");
            return (Criteria) this;
        }

        public Criteria andOnlineTimeLessThan(Date value) {
            addCriterion("online_time <", value, "onlineTime");
            return (Criteria) this;
        }

        public Criteria andOnlineTimeLessThanOrEqualTo(Date value) {
            addCriterion("online_time <=", value, "onlineTime");
            return (Criteria) this;
        }

        public Criteria andOnlineTimeIn(List<Date> values) {
            addCriterion("online_time in", values, "onlineTime");
            return (Criteria) this;
        }

        public Criteria andOnlineTimeNotIn(List<Date> values) {
            addCriterion("online_time not in", values, "onlineTime");
            return (Criteria) this;
        }

        public Criteria andOnlineTimeBetween(Date value1, Date value2) {
            addCriterion("online_time between", value1, value2, "onlineTime");
            return (Criteria) this;
        }

        public Criteria andOnlineTimeNotBetween(Date value1, Date value2) {
            addCriterion("online_time not between", value1, value2, "onlineTime");
            return (Criteria) this;
        }

        public Criteria andOnlineDescriptionIsNull() {
            addCriterion("online_description is null");
            return (Criteria) this;
        }

        public Criteria andOnlineDescriptionIsNotNull() {
            addCriterion("online_description is not null");
            return (Criteria) this;
        }

        public Criteria andOnlineDescriptionEqualTo(String value) {
            addCriterion("online_description =", value, "onlineDescription");
            return (Criteria) this;
        }

        public Criteria andOnlineDescriptionNotEqualTo(String value) {
            addCriterion("online_description <>", value, "onlineDescription");
            return (Criteria) this;
        }

        public Criteria andOnlineDescriptionGreaterThan(String value) {
            addCriterion("online_description >", value, "onlineDescription");
            return (Criteria) this;
        }

        public Criteria andOnlineDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("online_description >=", value, "onlineDescription");
            return (Criteria) this;
        }

        public Criteria andOnlineDescriptionLessThan(String value) {
            addCriterion("online_description <", value, "onlineDescription");
            return (Criteria) this;
        }

        public Criteria andOnlineDescriptionLessThanOrEqualTo(String value) {
            addCriterion("online_description <=", value, "onlineDescription");
            return (Criteria) this;
        }

        public Criteria andOnlineDescriptionLike(String value) {
            addCriterion("online_description like", value, "onlineDescription");
            return (Criteria) this;
        }

        public Criteria andOnlineDescriptionNotLike(String value) {
            addCriterion("online_description not like", value, "onlineDescription");
            return (Criteria) this;
        }

        public Criteria andOnlineDescriptionIn(List<String> values) {
            addCriterion("online_description in", values, "onlineDescription");
            return (Criteria) this;
        }

        public Criteria andOnlineDescriptionNotIn(List<String> values) {
            addCriterion("online_description not in", values, "onlineDescription");
            return (Criteria) this;
        }

        public Criteria andOnlineDescriptionBetween(String value1, String value2) {
            addCriterion("online_description between", value1, value2, "onlineDescription");
            return (Criteria) this;
        }

        public Criteria andOnlineDescriptionNotBetween(String value1, String value2) {
            addCriterion("online_description not between", value1, value2, "onlineDescription");
            return (Criteria) this;
        }

        public Criteria andImageUrlIdIsNull() {
            addCriterion("image_url_id is null");
            return (Criteria) this;
        }

        public Criteria andImageUrlIdIsNotNull() {
            addCriterion("image_url_id is not null");
            return (Criteria) this;
        }

        public Criteria andImageUrlIdEqualTo(String value) {
            addCriterion("image_url_id =", value, "imageUrlId");
            return (Criteria) this;
        }

        public Criteria andImageUrlIdNotEqualTo(String value) {
            addCriterion("image_url_id <>", value, "imageUrlId");
            return (Criteria) this;
        }

        public Criteria andImageUrlIdGreaterThan(String value) {
            addCriterion("image_url_id >", value, "imageUrlId");
            return (Criteria) this;
        }

        public Criteria andImageUrlIdGreaterThanOrEqualTo(String value) {
            addCriterion("image_url_id >=", value, "imageUrlId");
            return (Criteria) this;
        }

        public Criteria andImageUrlIdLessThan(String value) {
            addCriterion("image_url_id <", value, "imageUrlId");
            return (Criteria) this;
        }

        public Criteria andImageUrlIdLessThanOrEqualTo(String value) {
            addCriterion("image_url_id <=", value, "imageUrlId");
            return (Criteria) this;
        }

        public Criteria andImageUrlIdLike(String value) {
            addCriterion("image_url_id like", value, "imageUrlId");
            return (Criteria) this;
        }

        public Criteria andImageUrlIdNotLike(String value) {
            addCriterion("image_url_id not like", value, "imageUrlId");
            return (Criteria) this;
        }

        public Criteria andImageUrlIdIn(List<String> values) {
            addCriterion("image_url_id in", values, "imageUrlId");
            return (Criteria) this;
        }

        public Criteria andImageUrlIdNotIn(List<String> values) {
            addCriterion("image_url_id not in", values, "imageUrlId");
            return (Criteria) this;
        }

        public Criteria andImageUrlIdBetween(String value1, String value2) {
            addCriterion("image_url_id between", value1, value2, "imageUrlId");
            return (Criteria) this;
        }

        public Criteria andImageUrlIdNotBetween(String value1, String value2) {
            addCriterion("image_url_id not between", value1, value2, "imageUrlId");
            return (Criteria) this;
        }

        public Criteria andHandoverAddressIsNull() {
            addCriterion("handover_address is null");
            return (Criteria) this;
        }

        public Criteria andHandoverAddressIsNotNull() {
            addCriterion("handover_address is not null");
            return (Criteria) this;
        }

        public Criteria andHandoverAddressEqualTo(String value) {
            addCriterion("handover_address =", value, "handoverAddress");
            return (Criteria) this;
        }

        public Criteria andHandoverAddressNotEqualTo(String value) {
            addCriterion("handover_address <>", value, "handoverAddress");
            return (Criteria) this;
        }

        public Criteria andHandoverAddressGreaterThan(String value) {
            addCriterion("handover_address >", value, "handoverAddress");
            return (Criteria) this;
        }

        public Criteria andHandoverAddressGreaterThanOrEqualTo(String value) {
            addCriterion("handover_address >=", value, "handoverAddress");
            return (Criteria) this;
        }

        public Criteria andHandoverAddressLessThan(String value) {
            addCriterion("handover_address <", value, "handoverAddress");
            return (Criteria) this;
        }

        public Criteria andHandoverAddressLessThanOrEqualTo(String value) {
            addCriterion("handover_address <=", value, "handoverAddress");
            return (Criteria) this;
        }

        public Criteria andHandoverAddressLike(String value) {
            addCriterion("handover_address like", value, "handoverAddress");
            return (Criteria) this;
        }

        public Criteria andHandoverAddressNotLike(String value) {
            addCriterion("handover_address not like", value, "handoverAddress");
            return (Criteria) this;
        }

        public Criteria andHandoverAddressIn(List<String> values) {
            addCriterion("handover_address in", values, "handoverAddress");
            return (Criteria) this;
        }

        public Criteria andHandoverAddressNotIn(List<String> values) {
            addCriterion("handover_address not in", values, "handoverAddress");
            return (Criteria) this;
        }

        public Criteria andHandoverAddressBetween(String value1, String value2) {
            addCriterion("handover_address between", value1, value2, "handoverAddress");
            return (Criteria) this;
        }

        public Criteria andHandoverAddressNotBetween(String value1, String value2) {
            addCriterion("handover_address not between", value1, value2, "handoverAddress");
            return (Criteria) this;
        }

        public Criteria andBorrowDaysIsNull() {
            addCriterion("borrow_days is null");
            return (Criteria) this;
        }

        public Criteria andBorrowDaysIsNotNull() {
            addCriterion("borrow_days is not null");
            return (Criteria) this;
        }

        public Criteria andBorrowDaysEqualTo(Integer value) {
            addCriterion("borrow_days =", value, "borrowDays");
            return (Criteria) this;
        }

        public Criteria andBorrowDaysNotEqualTo(Integer value) {
            addCriterion("borrow_days <>", value, "borrowDays");
            return (Criteria) this;
        }

        public Criteria andBorrowDaysGreaterThan(Integer value) {
            addCriterion("borrow_days >", value, "borrowDays");
            return (Criteria) this;
        }

        public Criteria andBorrowDaysGreaterThanOrEqualTo(Integer value) {
            addCriterion("borrow_days >=", value, "borrowDays");
            return (Criteria) this;
        }

        public Criteria andBorrowDaysLessThan(Integer value) {
            addCriterion("borrow_days <", value, "borrowDays");
            return (Criteria) this;
        }

        public Criteria andBorrowDaysLessThanOrEqualTo(Integer value) {
            addCriterion("borrow_days <=", value, "borrowDays");
            return (Criteria) this;
        }

        public Criteria andBorrowDaysIn(List<Integer> values) {
            addCriterion("borrow_days in", values, "borrowDays");
            return (Criteria) this;
        }

        public Criteria andBorrowDaysNotIn(List<Integer> values) {
            addCriterion("borrow_days not in", values, "borrowDays");
            return (Criteria) this;
        }

        public Criteria andBorrowDaysBetween(Integer value1, Integer value2) {
            addCriterion("borrow_days between", value1, value2, "borrowDays");
            return (Criteria) this;
        }

        public Criteria andBorrowDaysNotBetween(Integer value1, Integer value2) {
            addCriterion("borrow_days not between", value1, value2, "borrowDays");
            return (Criteria) this;
        }

        public Criteria andFeeIsNull() {
            addCriterion("fee is null");
            return (Criteria) this;
        }

        public Criteria andFeeIsNotNull() {
            addCriterion("fee is not null");
            return (Criteria) this;
        }

        public Criteria andFeeEqualTo(Double value) {
            addCriterion("fee =", value, "fee");
            return (Criteria) this;
        }

        public Criteria andFeeNotEqualTo(Double value) {
            addCriterion("fee <>", value, "fee");
            return (Criteria) this;
        }

        public Criteria andFeeGreaterThan(Double value) {
            addCriterion("fee >", value, "fee");
            return (Criteria) this;
        }

        public Criteria andFeeGreaterThanOrEqualTo(Double value) {
            addCriterion("fee >=", value, "fee");
            return (Criteria) this;
        }

        public Criteria andFeeLessThan(Double value) {
            addCriterion("fee <", value, "fee");
            return (Criteria) this;
        }

        public Criteria andFeeLessThanOrEqualTo(Double value) {
            addCriterion("fee <=", value, "fee");
            return (Criteria) this;
        }

        public Criteria andFeeIn(List<Double> values) {
            addCriterion("fee in", values, "fee");
            return (Criteria) this;
        }

        public Criteria andFeeNotIn(List<Double> values) {
            addCriterion("fee not in", values, "fee");
            return (Criteria) this;
        }

        public Criteria andFeeBetween(Double value1, Double value2) {
            addCriterion("fee between", value1, value2, "fee");
            return (Criteria) this;
        }

        public Criteria andFeeNotBetween(Double value1, Double value2) {
            addCriterion("fee not between", value1, value2, "fee");
            return (Criteria) this;
        }

        public Criteria andDamageDescriptionIsNull() {
            addCriterion("damage_description is null");
            return (Criteria) this;
        }

        public Criteria andDamageDescriptionIsNotNull() {
            addCriterion("damage_description is not null");
            return (Criteria) this;
        }

        public Criteria andDamageDescriptionEqualTo(String value) {
            addCriterion("damage_description =", value, "damageDescription");
            return (Criteria) this;
        }

        public Criteria andDamageDescriptionNotEqualTo(String value) {
            addCriterion("damage_description <>", value, "damageDescription");
            return (Criteria) this;
        }

        public Criteria andDamageDescriptionGreaterThan(String value) {
            addCriterion("damage_description >", value, "damageDescription");
            return (Criteria) this;
        }

        public Criteria andDamageDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("damage_description >=", value, "damageDescription");
            return (Criteria) this;
        }

        public Criteria andDamageDescriptionLessThan(String value) {
            addCriterion("damage_description <", value, "damageDescription");
            return (Criteria) this;
        }

        public Criteria andDamageDescriptionLessThanOrEqualTo(String value) {
            addCriterion("damage_description <=", value, "damageDescription");
            return (Criteria) this;
        }

        public Criteria andDamageDescriptionLike(String value) {
            addCriterion("damage_description like", value, "damageDescription");
            return (Criteria) this;
        }

        public Criteria andDamageDescriptionNotLike(String value) {
            addCriterion("damage_description not like", value, "damageDescription");
            return (Criteria) this;
        }

        public Criteria andDamageDescriptionIn(List<String> values) {
            addCriterion("damage_description in", values, "damageDescription");
            return (Criteria) this;
        }

        public Criteria andDamageDescriptionNotIn(List<String> values) {
            addCriterion("damage_description not in", values, "damageDescription");
            return (Criteria) this;
        }

        public Criteria andDamageDescriptionBetween(String value1, String value2) {
            addCriterion("damage_description between", value1, value2, "damageDescription");
            return (Criteria) this;
        }

        public Criteria andDamageDescriptionNotBetween(String value1, String value2) {
            addCriterion("damage_description not between", value1, value2, "damageDescription");
            return (Criteria) this;
        }

        public Criteria andDamageFeeIsNull() {
            addCriterion("damage_fee is null");
            return (Criteria) this;
        }

        public Criteria andDamageFeeIsNotNull() {
            addCriterion("damage_fee is not null");
            return (Criteria) this;
        }

        public Criteria andDamageFeeEqualTo(BigDecimal value) {
            addCriterion("damage_fee =", value, "damageFee");
            return (Criteria) this;
        }

        public Criteria andDamageFeeNotEqualTo(BigDecimal value) {
            addCriterion("damage_fee <>", value, "damageFee");
            return (Criteria) this;
        }

        public Criteria andDamageFeeGreaterThan(BigDecimal value) {
            addCriterion("damage_fee >", value, "damageFee");
            return (Criteria) this;
        }

        public Criteria andDamageFeeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("damage_fee >=", value, "damageFee");
            return (Criteria) this;
        }

        public Criteria andDamageFeeLessThan(BigDecimal value) {
            addCriterion("damage_fee <", value, "damageFee");
            return (Criteria) this;
        }

        public Criteria andDamageFeeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("damage_fee <=", value, "damageFee");
            return (Criteria) this;
        }

        public Criteria andDamageFeeIn(List<BigDecimal> values) {
            addCriterion("damage_fee in", values, "damageFee");
            return (Criteria) this;
        }

        public Criteria andDamageFeeNotIn(List<BigDecimal> values) {
            addCriterion("damage_fee not in", values, "damageFee");
            return (Criteria) this;
        }

        public Criteria andDamageFeeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("damage_fee between", value1, value2, "damageFee");
            return (Criteria) this;
        }

        public Criteria andDamageFeeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("damage_fee not between", value1, value2, "damageFee");
            return (Criteria) this;
        }

        public Criteria andOverdueFeePerDayIsNull() {
            addCriterion("overdue_fee_per_day is null");
            return (Criteria) this;
        }

        public Criteria andOverdueFeePerDayIsNotNull() {
            addCriterion("overdue_fee_per_day is not null");
            return (Criteria) this;
        }

        public Criteria andOverdueFeePerDayEqualTo(BigDecimal value) {
            addCriterion("overdue_fee_per_day =", value, "overdueFeePerDay");
            return (Criteria) this;
        }

        public Criteria andOverdueFeePerDayNotEqualTo(BigDecimal value) {
            addCriterion("overdue_fee_per_day <>", value, "overdueFeePerDay");
            return (Criteria) this;
        }

        public Criteria andOverdueFeePerDayGreaterThan(BigDecimal value) {
            addCriterion("overdue_fee_per_day >", value, "overdueFeePerDay");
            return (Criteria) this;
        }

        public Criteria andOverdueFeePerDayGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("overdue_fee_per_day >=", value, "overdueFeePerDay");
            return (Criteria) this;
        }

        public Criteria andOverdueFeePerDayLessThan(BigDecimal value) {
            addCriterion("overdue_fee_per_day <", value, "overdueFeePerDay");
            return (Criteria) this;
        }

        public Criteria andOverdueFeePerDayLessThanOrEqualTo(BigDecimal value) {
            addCriterion("overdue_fee_per_day <=", value, "overdueFeePerDay");
            return (Criteria) this;
        }

        public Criteria andOverdueFeePerDayIn(List<BigDecimal> values) {
            addCriterion("overdue_fee_per_day in", values, "overdueFeePerDay");
            return (Criteria) this;
        }

        public Criteria andOverdueFeePerDayNotIn(List<BigDecimal> values) {
            addCriterion("overdue_fee_per_day not in", values, "overdueFeePerDay");
            return (Criteria) this;
        }

        public Criteria andOverdueFeePerDayBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("overdue_fee_per_day between", value1, value2, "overdueFeePerDay");
            return (Criteria) this;
        }

        public Criteria andOverdueFeePerDayNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("overdue_fee_per_day not between", value1, value2, "overdueFeePerDay");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andReservationCountIsNull() {
            addCriterion("reservation_count is null");
            return (Criteria) this;
        }

        public Criteria andReservationCountIsNotNull() {
            addCriterion("reservation_count is not null");
            return (Criteria) this;
        }

        public Criteria andReservationCountEqualTo(Integer value) {
            addCriterion("reservation_count =", value, "reservationCount");
            return (Criteria) this;
        }

        public Criteria andReservationCountNotEqualTo(Integer value) {
            addCriterion("reservation_count <>", value, "reservationCount");
            return (Criteria) this;
        }

        public Criteria andReservationCountGreaterThan(Integer value) {
            addCriterion("reservation_count >", value, "reservationCount");
            return (Criteria) this;
        }

        public Criteria andReservationCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("reservation_count >=", value, "reservationCount");
            return (Criteria) this;
        }

        public Criteria andReservationCountLessThan(Integer value) {
            addCriterion("reservation_count <", value, "reservationCount");
            return (Criteria) this;
        }

        public Criteria andReservationCountLessThanOrEqualTo(Integer value) {
            addCriterion("reservation_count <=", value, "reservationCount");
            return (Criteria) this;
        }

        public Criteria andReservationCountIn(List<Integer> values) {
            addCriterion("reservation_count in", values, "reservationCount");
            return (Criteria) this;
        }

        public Criteria andReservationCountNotIn(List<Integer> values) {
            addCriterion("reservation_count not in", values, "reservationCount");
            return (Criteria) this;
        }

        public Criteria andReservationCountBetween(Integer value1, Integer value2) {
            addCriterion("reservation_count between", value1, value2, "reservationCount");
            return (Criteria) this;
        }

        public Criteria andReservationCountNotBetween(Integer value1, Integer value2) {
            addCriterion("reservation_count not between", value1, value2, "reservationCount");
            return (Criteria) this;
        }

        public Criteria andTotalReservationDaysIsNull() {
            addCriterion("total_reservation_days is null");
            return (Criteria) this;
        }

        public Criteria andTotalReservationDaysIsNotNull() {
            addCriterion("total_reservation_days is not null");
            return (Criteria) this;
        }

        public Criteria andTotalReservationDaysEqualTo(Integer value) {
            addCriterion("total_reservation_days =", value, "totalReservationDays");
            return (Criteria) this;
        }

        public Criteria andTotalReservationDaysNotEqualTo(Integer value) {
            addCriterion("total_reservation_days <>", value, "totalReservationDays");
            return (Criteria) this;
        }

        public Criteria andTotalReservationDaysGreaterThan(Integer value) {
            addCriterion("total_reservation_days >", value, "totalReservationDays");
            return (Criteria) this;
        }

        public Criteria andTotalReservationDaysGreaterThanOrEqualTo(Integer value) {
            addCriterion("total_reservation_days >=", value, "totalReservationDays");
            return (Criteria) this;
        }

        public Criteria andTotalReservationDaysLessThan(Integer value) {
            addCriterion("total_reservation_days <", value, "totalReservationDays");
            return (Criteria) this;
        }

        public Criteria andTotalReservationDaysLessThanOrEqualTo(Integer value) {
            addCriterion("total_reservation_days <=", value, "totalReservationDays");
            return (Criteria) this;
        }

        public Criteria andTotalReservationDaysIn(List<Integer> values) {
            addCriterion("total_reservation_days in", values, "totalReservationDays");
            return (Criteria) this;
        }

        public Criteria andTotalReservationDaysNotIn(List<Integer> values) {
            addCriterion("total_reservation_days not in", values, "totalReservationDays");
            return (Criteria) this;
        }

        public Criteria andTotalReservationDaysBetween(Integer value1, Integer value2) {
            addCriterion("total_reservation_days between", value1, value2, "totalReservationDays");
            return (Criteria) this;
        }

        public Criteria andTotalReservationDaysNotBetween(Integer value1, Integer value2) {
            addCriterion("total_reservation_days not between", value1, value2, "totalReservationDays");
            return (Criteria) this;
        }

        public Criteria andReservationEndTimeIsNull() {
            addCriterion("reservation_end_time is null");
            return (Criteria) this;
        }

        public Criteria andReservationEndTimeIsNotNull() {
            addCriterion("reservation_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andReservationEndTimeEqualTo(Date value) {
            addCriterion("reservation_end_time =", value, "reservationEndTime");
            return (Criteria) this;
        }

        public Criteria andReservationEndTimeNotEqualTo(Date value) {
            addCriterion("reservation_end_time <>", value, "reservationEndTime");
            return (Criteria) this;
        }

        public Criteria andReservationEndTimeGreaterThan(Date value) {
            addCriterion("reservation_end_time >", value, "reservationEndTime");
            return (Criteria) this;
        }

        public Criteria andReservationEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("reservation_end_time >=", value, "reservationEndTime");
            return (Criteria) this;
        }

        public Criteria andReservationEndTimeLessThan(Date value) {
            addCriterion("reservation_end_time <", value, "reservationEndTime");
            return (Criteria) this;
        }

        public Criteria andReservationEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("reservation_end_time <=", value, "reservationEndTime");
            return (Criteria) this;
        }

        public Criteria andReservationEndTimeIn(List<Date> values) {
            addCriterion("reservation_end_time in", values, "reservationEndTime");
            return (Criteria) this;
        }

        public Criteria andReservationEndTimeNotIn(List<Date> values) {
            addCriterion("reservation_end_time not in", values, "reservationEndTime");
            return (Criteria) this;
        }

        public Criteria andReservationEndTimeBetween(Date value1, Date value2) {
            addCriterion("reservation_end_time between", value1, value2, "reservationEndTime");
            return (Criteria) this;
        }

        public Criteria andReservationEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("reservation_end_time not between", value1, value2, "reservationEndTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeIsNull() {
            addCriterion("offline_time is null");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeIsNotNull() {
            addCriterion("offline_time is not null");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeEqualTo(Date value) {
            addCriterion("offline_time =", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeNotEqualTo(Date value) {
            addCriterion("offline_time <>", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeGreaterThan(Date value) {
            addCriterion("offline_time >", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("offline_time >=", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeLessThan(Date value) {
            addCriterion("offline_time <", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeLessThanOrEqualTo(Date value) {
            addCriterion("offline_time <=", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeIn(List<Date> values) {
            addCriterion("offline_time in", values, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeNotIn(List<Date> values) {
            addCriterion("offline_time not in", values, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeBetween(Date value1, Date value2) {
            addCriterion("offline_time between", value1, value2, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeNotBetween(Date value1, Date value2) {
            addCriterion("offline_time not between", value1, value2, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}